package com.dongge.action;

import com.dongge.entity1.ValidateModel;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

/**
 * Created by Administrator on 2015/10/3.
 */
@Controller
@Scope("prototype")
public class ValidateAction extends ActionSupport implements ModelDriven<ValidateModel>{

    private ValidateModel validateModel = null;

    public ValidateModel getModel() {
        validateModel =  new ValidateModel();
        return validateModel;
    }

    public ValidateModel getValidateModel() {
        return validateModel;
    }

    @Override
    public String execute() throws Exception {
        System.out.println(validateModel);
        return super.execute();
    }
}
